# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.Dataproc.V1.Model.SparkWrapperObject do
  @moduledoc """
  Outer message that contains the data obtained from spark listener, packaged with information that is required to process it.

  ## Attributes

  *   `appSummary` (*type:* `GoogleApi.Dataproc.V1.Model.AppSummary.t`, *default:* `nil`) - 
  *   `applicationEnvironmentInfo` (*type:* `GoogleApi.Dataproc.V1.Model.ApplicationEnvironmentInfo.t`, *default:* `nil`) - 
  *   `applicationId` (*type:* `String.t`, *default:* `nil`) - Application Id created by Spark.
  *   `applicationInfo` (*type:* `GoogleApi.Dataproc.V1.Model.ApplicationInfo.t`, *default:* `nil`) - 
  *   `eventTimestamp` (*type:* `DateTime.t`, *default:* `nil`) - VM Timestamp associated with the data object.
  *   `executorStageSummary` (*type:* `GoogleApi.Dataproc.V1.Model.ExecutorStageSummary.t`, *default:* `nil`) - 
  *   `executorSummary` (*type:* `GoogleApi.Dataproc.V1.Model.ExecutorSummary.t`, *default:* `nil`) - 
  *   `jobData` (*type:* `GoogleApi.Dataproc.V1.Model.JobData.t`, *default:* `nil`) - 
  *   `nativeBuildInfoUiData` (*type:* `GoogleApi.Dataproc.V1.Model.NativeBuildInfoUiData.t`, *default:* `nil`) - Native Build Info
  *   `nativeSqlExecutionUiData` (*type:* `GoogleApi.Dataproc.V1.Model.NativeSqlExecutionUiData.t`, *default:* `nil`) - Native SQL Execution Info
  *   `poolData` (*type:* `GoogleApi.Dataproc.V1.Model.PoolData.t`, *default:* `nil`) - 
  *   `processSummary` (*type:* `GoogleApi.Dataproc.V1.Model.ProcessSummary.t`, *default:* `nil`) - 
  *   `rddOperationGraph` (*type:* `GoogleApi.Dataproc.V1.Model.RddOperationGraph.t`, *default:* `nil`) - 
  *   `rddStorageInfo` (*type:* `GoogleApi.Dataproc.V1.Model.RddStorageInfo.t`, *default:* `nil`) - 
  *   `resourceProfileInfo` (*type:* `GoogleApi.Dataproc.V1.Model.ResourceProfileInfo.t`, *default:* `nil`) - 
  *   `sparkPlanGraph` (*type:* `GoogleApi.Dataproc.V1.Model.SparkPlanGraph.t`, *default:* `nil`) - 
  *   `speculationStageSummary` (*type:* `GoogleApi.Dataproc.V1.Model.SpeculationStageSummary.t`, *default:* `nil`) - 
  *   `sqlExecutionUiData` (*type:* `GoogleApi.Dataproc.V1.Model.SqlExecutionUiData.t`, *default:* `nil`) - 
  *   `stageData` (*type:* `GoogleApi.Dataproc.V1.Model.StageData.t`, *default:* `nil`) - 
  *   `streamBlockData` (*type:* `GoogleApi.Dataproc.V1.Model.StreamBlockData.t`, *default:* `nil`) - 
  *   `streamingQueryData` (*type:* `GoogleApi.Dataproc.V1.Model.StreamingQueryData.t`, *default:* `nil`) - 
  *   `streamingQueryProgress` (*type:* `GoogleApi.Dataproc.V1.Model.StreamingQueryProgress.t`, *default:* `nil`) - 
  *   `taskData` (*type:* `GoogleApi.Dataproc.V1.Model.TaskData.t`, *default:* `nil`) - 
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :appSummary => GoogleApi.Dataproc.V1.Model.AppSummary.t() | nil,
          :applicationEnvironmentInfo =>
            GoogleApi.Dataproc.V1.Model.ApplicationEnvironmentInfo.t() | nil,
          :applicationId => String.t() | nil,
          :applicationInfo => GoogleApi.Dataproc.V1.Model.ApplicationInfo.t() | nil,
          :eventTimestamp => DateTime.t() | nil,
          :executorStageSummary => GoogleApi.Dataproc.V1.Model.ExecutorStageSummary.t() | nil,
          :executorSummary => GoogleApi.Dataproc.V1.Model.ExecutorSummary.t() | nil,
          :jobData => GoogleApi.Dataproc.V1.Model.JobData.t() | nil,
          :nativeBuildInfoUiData => GoogleApi.Dataproc.V1.Model.NativeBuildInfoUiData.t() | nil,
          :nativeSqlExecutionUiData =>
            GoogleApi.Dataproc.V1.Model.NativeSqlExecutionUiData.t() | nil,
          :poolData => GoogleApi.Dataproc.V1.Model.PoolData.t() | nil,
          :processSummary => GoogleApi.Dataproc.V1.Model.ProcessSummary.t() | nil,
          :rddOperationGraph => GoogleApi.Dataproc.V1.Model.RddOperationGraph.t() | nil,
          :rddStorageInfo => GoogleApi.Dataproc.V1.Model.RddStorageInfo.t() | nil,
          :resourceProfileInfo => GoogleApi.Dataproc.V1.Model.ResourceProfileInfo.t() | nil,
          :sparkPlanGraph => GoogleApi.Dataproc.V1.Model.SparkPlanGraph.t() | nil,
          :speculationStageSummary =>
            GoogleApi.Dataproc.V1.Model.SpeculationStageSummary.t() | nil,
          :sqlExecutionUiData => GoogleApi.Dataproc.V1.Model.SqlExecutionUiData.t() | nil,
          :stageData => GoogleApi.Dataproc.V1.Model.StageData.t() | nil,
          :streamBlockData => GoogleApi.Dataproc.V1.Model.StreamBlockData.t() | nil,
          :streamingQueryData => GoogleApi.Dataproc.V1.Model.StreamingQueryData.t() | nil,
          :streamingQueryProgress => GoogleApi.Dataproc.V1.Model.StreamingQueryProgress.t() | nil,
          :taskData => GoogleApi.Dataproc.V1.Model.TaskData.t() | nil
        }

  field(:appSummary, as: GoogleApi.Dataproc.V1.Model.AppSummary)
  field(:applicationEnvironmentInfo, as: GoogleApi.Dataproc.V1.Model.ApplicationEnvironmentInfo)
  field(:applicationId)
  field(:applicationInfo, as: GoogleApi.Dataproc.V1.Model.ApplicationInfo)
  field(:eventTimestamp, as: DateTime)
  field(:executorStageSummary, as: GoogleApi.Dataproc.V1.Model.ExecutorStageSummary)
  field(:executorSummary, as: GoogleApi.Dataproc.V1.Model.ExecutorSummary)
  field(:jobData, as: GoogleApi.Dataproc.V1.Model.JobData)
  field(:nativeBuildInfoUiData, as: GoogleApi.Dataproc.V1.Model.NativeBuildInfoUiData)
  field(:nativeSqlExecutionUiData, as: GoogleApi.Dataproc.V1.Model.NativeSqlExecutionUiData)
  field(:poolData, as: GoogleApi.Dataproc.V1.Model.PoolData)
  field(:processSummary, as: GoogleApi.Dataproc.V1.Model.ProcessSummary)
  field(:rddOperationGraph, as: GoogleApi.Dataproc.V1.Model.RddOperationGraph)
  field(:rddStorageInfo, as: GoogleApi.Dataproc.V1.Model.RddStorageInfo)
  field(:resourceProfileInfo, as: GoogleApi.Dataproc.V1.Model.ResourceProfileInfo)
  field(:sparkPlanGraph, as: GoogleApi.Dataproc.V1.Model.SparkPlanGraph)
  field(:speculationStageSummary, as: GoogleApi.Dataproc.V1.Model.SpeculationStageSummary)
  field(:sqlExecutionUiData, as: GoogleApi.Dataproc.V1.Model.SqlExecutionUiData)
  field(:stageData, as: GoogleApi.Dataproc.V1.Model.StageData)
  field(:streamBlockData, as: GoogleApi.Dataproc.V1.Model.StreamBlockData)
  field(:streamingQueryData, as: GoogleApi.Dataproc.V1.Model.StreamingQueryData)
  field(:streamingQueryProgress, as: GoogleApi.Dataproc.V1.Model.StreamingQueryProgress)
  field(:taskData, as: GoogleApi.Dataproc.V1.Model.TaskData)
end

defimpl Poison.Decoder, for: GoogleApi.Dataproc.V1.Model.SparkWrapperObject do
  def decode(value, options) do
    GoogleApi.Dataproc.V1.Model.SparkWrapperObject.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.Dataproc.V1.Model.SparkWrapperObject do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
